Change a user's password
POST /api/v1/users/:userId/change-password
Description
Change a user's password.
Headers:
- Content-Type: application/json
- Authorization:
Bearer {{bearerToken}}
URL: /api/v1/users/:userId/change-password
-
Path Parameters:
userId(Required): User ID
-
Response: The response is "Created" with a code of 201.
/api/v1/users/:userId/change-password
Headers
| Content-Type | Value |
|---|---|
| Content-Type | application/json |
Body (raw)
{
"oldPassword": "<string>",
"newPassword": "<string>",
"confirmPassword": "<string>"
}
🔑 Authentication bearer
| Param | value | Type |
|---|---|---|
| token | bearerToken | string |
Response: 200
LANGUAGE
CURL REQUEST
curl --request POST \
--url /api/v1/users/:userId/change-password \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!